<template>
  <div class="hot-singer">
    <main-table>
      <div slot="left" class="hot">热门歌手</div>
      <a href="javascript:;" slot="right">查看全部></a>
      
      <div slot="body">
        <!-- 盒子 -->
        <div class="singer-box" v-for="(item, index) in hotSingerList" :key="index">
          <div class="left">
            <el-image :src="item.img1v1Url" alt="" lazy/>
          </div>
          <div class="right">
            <h4>
              <span>{{item.name}}</span>
            </h4>

            <p>{{item.alias[0]}}</p>
          </div>
        </div>
        <!-- 底部 -->
        <a href="https://music.163.com/st/musician" class="footer">申请成为网易音乐人</a>
      </div>
    </main-table>
  </div>
</template>

<script>
import mainTable from "../../../components/common/mainTable.vue";
export default {
  components: { mainTable },
  props: {
    hotSingerList: {
      type: Array,
      default() {
        return []
      }
    }
  }
};
</script>

<style lang="scss" scoped>
.hot-singer {
  width: 210px;
  margin-left: 22.5px;
}
.main-table {
  background: none;
  .hot {
    font-size: 12px;
    color: #000;
    margin-bottom: 2px;
  }
  .singer-box {
    margin-top: 15px;
    border: 1px solid #e9e9e9;
    border-left: none;
    width: 210px;
    display: flex;

    .left {
      width: 62px;
      height: 62px;
      .el-image {
        width: 100%;
        height: 100%;
      }
    }
    .right {
      background-color: #fafafa;
      width: 148px;
      padding-left: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      h4,
      p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: normal;
      }
      h4 {
        font-size: 14px;
        color: #333;
      }
    }
    &:hover {
       box-shadow: 0 2px 8px rgb(0 0 0 / 80%);
      background-color: #f5f5f5;
      cursor: pointer;
    }
  }
  .footer {
    display: block;
    width: 210px ;
    height: 31px;
    margin-top: 15px;
    font-weight: bold;
    border: 1px solid #ccc;
    color: #333;
    text-align: center;
    line-height: 31px;
    border-radius: 4px;
    background: url('https://s2.music.126.net/style/web2/img/button2.png?658d3fc91f3a55262cdd2cad0621b208');
    background-position:  0 -59px;
    &:hover {
      background-position:  0 -141px;
    }

  }
}
</style>